// 查询定时任务调度列表
import request from '@/utils/request'

export function getGraphData() {
  return request({
    url: '/spread/statistics/spread',
    method: 'get'
  })
}

// 客户端ip
export function getDiffusionSourceData() {
  return request({
    url: '/spread/statistics/source',
    method: 'get'
  })
}

// 分级
export function getDiffusionLevelData() {
  return request({
    url: '/spread/statistics/level',
    method: 'get'
  })
}

// 分类
export function getDiffusionTypeData() {
  return request({
    url: '/spread/statistics/type',
    method: 'get'
  })
}

// 数据库
export function getDiffusionDbData() {
  return request({
    url: '/spread/statistics/db',
    method: 'get'
  })
}

// 表
export function getDiffusionTableData() {
  return request({
    url: '/spread/statistics/table',
    method: 'get'
  })
}

// 敏感字段
export function getDiffusionWordData() {
  return request({
    url: '/spread/statistics/word',
    method: 'get'
  })
}

// 敏感字段
export function getDiffusionCardData() {
  return request({
    url: '/spread/statistics/card',
    method: 'get'
  })
}

// 扩散总览
export function getSpreadOverview(params) {
  return request({
    url: '/spread/spreadDateStat/aggTermStat',
    method: 'get',
    params
  })
}

// 扩散排行
export function getSpreadRinking(data) {
  return request({
    url: '/spread/spreadDateRank/querySpreadRank',
    method: 'post',
    data
  })
}

// 扩散排行 报告
export function getSpreadRinkingReport(data) {
  return request({
    url: '/spread/spreadDateRank/spreadRankReport',
    method: 'post',
    data
  })
}

// 扩散排行 报告KPI
export function getSpreadRinkingReportKpi(params) {
  return request({
    url: '/spread/spreadDateStat/spreadCatatoryNum',
    method: 'get',
    params
  })
}

//下拉列表
export function spreadCatatoryList(params) {
  return request({
    url: '/spread/spreadDateStat/spreadCatatoryList',
    method: 'get',
    params
  })
}

//已扫描敏感表类别分布
export function totalDiffusion(data) {
  return request({
    url: '/spread/spreadDateRank/spread',
    method: 'post',
    data
  })
}
//扩散总览实时统计
export function queryRealTimeQueue(params) {
  return request({
    url: '/spread/spreadDateRank/queryRealTimeQueue',
    method: 'get',
    params
  })
}
